package com.yida.gwj.config.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Arrays;

/**
 * @author lqq
 * @date 2023-02-24
 */
@ApiModel("查询业务房屋规划用户请求")
public class GwjBusinessHouseUseTypeRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("业务ID")
	@NotNull(message = "请求数据有误[业务ID]不能为空")
	private Long bizId;

	@ApiModelProperty("楼栋标识码数组")
	private String[] buildCodes;

	@ApiModelProperty("表名前缀")
	@NotBlank(message = "请求数据有误[表名前缀]不能为空")
	private String tableNamePrefix;

	public String getTableNamePrefix() {
		return tableNamePrefix;
	}

	public void setTableNamePrefix(String tableNamePrefix) {
		this.tableNamePrefix = tableNamePrefix;
	}

	public Long getBizId() {
		return bizId;
	}

	public void setBizId(Long bizId) {
		this.bizId = bizId;
	}

	public String[] getBuildCodes() {
		return buildCodes;
	}

	public void setBuildCodes(String[] buildCodes) {
		this.buildCodes = buildCodes;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjBusinessHouseUseTypeRequest{");
		sb.append("bizId=").append(bizId);
		sb.append(", buildCodes=").append(buildCodes == null ? "null" : Arrays.asList(buildCodes).toString());
		sb.append(", tableNamePrefix='").append(tableNamePrefix).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
